/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ua.yandex.skipass;

/**
 *
 * @author Brothers
 */
public class Turnstile {

    private int id;
    private AccountingSystem sys;

    public Turnstile() {
        this.id = 0;
    }

    public Turnstile(AccountingSystem system) {
        this.sys = system;
    }

    public void setId(int idn) {
        this.id = idn;
    }

    public boolean access(SkiPass pass) {
        return sys.checkPass(pass);
    }

}
